package com.testword;


import io.lettuce.core.dynamic.annotation.Value;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.server.ConfigurableWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.activation.DataSource;
import javax.annotation.PostConstruct;
import java.sql.Connection;
import java.sql.SQLException;

@EnableAsync//异步调用
@SpringBootApplication(scanBasePackages= {"com.testword"})
@MapperScan(basePackages = {"com.testword.mappers"})
@EnableTransactionManagement//事务管理
public class TestWordApplication {


    public static void main(String[] args) {

        SpringApplication.run(TestWordApplication.class,args);
    }

    }
